import request from '@/utils/request'

export function getList(params: any) {
  return request({
    url: '/community/getList',
    method: 'get',
    params,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/community/getEdit',
    method: 'post',
    data,
  })
}
export function BuildUnitList(data: any) {
  return request({
    url: '/community/BuildUnitList',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/community/doDelete',
    method: 'post',
    data,
  })
}

export function buildingList(params: any) {
  return request({
    url: '/community/buildingList',
    method: 'get',
    params,
  })
}

export function floorList(params: any) {
  return request({
    url: '/community/floorList',
    method: 'get',
    params,
  })
}

export function roomList(params: any) {
  return request({
    url: '/community/roomList',
    method: 'get',
    params,
  })
}

export function buildingEdit(params: any) {
  return request({
    url: '/community/buildingEdit',
    method: 'get',
    params,
  })
}

export function BuildUnitEdit(params: any) {
  return request({
    url: '/community/BuildUnitEdit',
    method: 'get',
    params,
  })
}

export function floorEdit(params: any) {
  return request({
    url: '/community/floorEdit',
    method: 'get',
    params,
  })
}

export function roomEdit(params: any) {
  return request({
    url: '/community/roomEdit',
    method: 'get',
    params,
  })
}
